
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>头像上传</title>
</head>
<body>
<%--文件上传
1）method必须指定为post
2）必须为enctype="multipart/form-data“--%>
<form action="${pageContext.request.contextPath}/admin/headpic" method="post" enctype="multipart/form-data">
    选择头像：<input type="file" name="headpic"/>
    <input type="text" name="id" value="${param.id}"/>
    <input type="submit" value="上传"/>
</form>
</body>
</html>
